﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="SoluzioniProposte.aspx.cs" Inherits="Contents_SoluzioniProposte" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="ID">
        <ItemTemplate>
            <tr style="background-color: #DCDCDC; color: #000000;">
                <td>
                    <a href="/Contents/DettaglioAnnuncio.aspx?Id=<%# Eval("ID") %>">
                        <img alt="." src="../Img/select.jpg" />
                    </a>
                </td>
                <td>
                    <asp:Label ID="MarcaLabel" runat="server" Text='<%# Eval("Marca") %>' />
                </td>
                <td>
                    <asp:Label ID="ModelloLabel" runat="server" Text='<%# Eval("Modello") %>' />
                </td>
                <td>
                    <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                </td>
                <td>
                    <asp:Label ID="PossessoLabel" runat="server" Text='<%# Eval("Possesso") %>' />
                </td>
                <td>
                    <asp:Label ID="PrezzoLabel" runat="server" Text='<%# Eval("Prezzo") %>' />
                </td>
                <td>
                    <asp:Label ID="ColoreLabel" runat="server" Text='<%# Eval("Colore") %>' />
                </td>
                <td>
                    <asp:Label ID="CarburanteLabel" runat="server" Text='<%# Eval("Carburante") %>' />
                </td>
                <td>
                    <asp:Label ID="column1Label" runat="server" Text='<%# Eval("Cili") %>' />
                </td>
                <td>
                    <asp:Label ID="KmLabel" runat="server" Text='<%# Eval("Km") %>' />
                </td>
                <td>
                    <asp:Label ID="column2Label" runat="server" Text='<%# Eval("nPosti") %>' />
                </td>
                <td>
                    <asp:Label ID="column3Label" runat="server" Text='<%# Eval("nPorte") %>' />
                </td>
                <td>
                    <asp:Label ID="StatoLabel" runat="server" Text='<%# Eval("Stato") %>' />
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr style="background-color: #DCDCDC; color: #000000;">
                <td>
                    <a href="/Contents/DettaglioAnnuncio.aspx?Id=<%# Eval("ID") %>">
                        <img alt="." src="../Img/select.jpg" />
                    </a>
                </td>
                <td>
                    <asp:Label ID="MarcaLabel" runat="server" Text='<%# Eval("Marca") %>' />
                </td>
                <td>
                    <asp:Label ID="ModelloLabel" runat="server" Text='<%# Eval("Modello") %>' />
                </td>
                <td>
                    <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                </td>
                <td>
                    <asp:Label ID="PossessoLabel" runat="server" Text='<%# Eval("Possesso") %>' />
                </td>
                <td>
                    <asp:Label ID="PrezzoLabel" runat="server" Text='<%# Eval("Prezzo") %>' />
                </td>
                <td>
                    <asp:Label ID="ColoreLabel" runat="server" Text='<%# Eval("Colore") %>' />
                </td>
                <td>
                    <asp:Label ID="CarburanteLabel" runat="server" Text='<%# Eval("Carburante") %>' />
                </td>
                <td>
                    <asp:Label ID="column1Label" runat="server" Text='<%# Eval("Cili") %>' />
                </td>
                <td>
                    <asp:Label ID="KmLabel" runat="server" Text='<%# Eval("Km") %>' />
                </td>
                <td>
                    <asp:Label ID="column2Label" runat="server" Text='<%# Eval("nPosti") %>' />
                </td>
                <td>
                    <asp:Label ID="column3Label" runat="server" Text='<%# Eval("nPorte") %>' />
                </td>
                <td>
                    <asp:Label ID="StatoLabel" runat="server" Text='<%# Eval("Stato") %>' />
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" cellspacing="5" style="background-color: #FFFFFF; border-collapse: collapse;
                border-color: #999999; border-style: none; border-width: 1px;">
                <tr>
                    <td>
                        <br />
                        <h3>
                            <b>Non è stato restituito alcun dato.</h3>
                        </b>
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <LayoutTemplate>
            <table runat="server" cellspacing="6">
                <tr runat="server">
                    <td runat="server">
                        <table id="itemPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF;
                            border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;
                            font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr runat="server" style="background-color: #DCDCDC; color: #000000;">
                                <th runat="server">
                                    ->
                                </th>
                                <th runat="server">
                                    Marca
                                </th>
                                <th runat="server">
                                    Modello
                                </th>
                                <th runat="server">
                                    Tipo
                                </th>
                                <th runat="server">
                                    Possesso
                                </th>
                                <th id="Th1" runat="server">
                                    Prezzo
                                </th>
                                <th runat="server">
                                    Colore
                                </th>
                                <th runat="server">
                                    Carburante
                                </th>
                                <th runat="server">
                                    Cili.
                                </th>
                                <th runat="server">
                                    Km
                                </th>
                                <th runat="server">
                                    n.Posti
                                </th>
                                <th runat="server">
                                    n.Porte
                                </th>
                                <th id="Th2" runat="server">
                                    Stato
                                </th>
                            </tr>
                            <tr runat="server" id="itemPlaceholder">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="text-align: center; background-color: #CCCCCC; font-family: Verdana, Arial, Helvetica, sans-serif;
                        color: #000000;">
                        <asp:DataPager ID="DataPager2" runat="server">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <tr style="background-color: #008A8C; font-weight: bold; color: #FFFFFF;">
                <td>
                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                </td>
                <td>
                    <asp:Label ID="MarcaLabel" runat="server" Text='<%# Eval("Marca") %>' />
                </td>
                <td>
                    <asp:Label ID="ModelloLabel" runat="server" Text='<%# Eval("Modello") %>' />
                </td>
                <td>
                    <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                </td>
                <td>
                    <asp:Label ID="PossessoLabel" runat="server" Text='<%# Eval("Possesso") %>' />
                </td>
                <td>
                    <asp:Label ID="PrezzoLabel" runat="server" Text='<%# Eval("Prezzo") %>' />
                </td>
                <td>
                    <asp:Label ID="ColoreLabel" runat="server" Text='<%# Eval("Colore") %>' />
                </td>
                <td>
                    <asp:Label ID="CarburanteLabel" runat="server" Text='<%# Eval("Carburante") %>' />
                </td>
                <td>
                    <asp:Label ID="column1Label" runat="server" Text='<%# Eval("column1") %>' />
                </td>
                <td>
                    <asp:Label ID="KmLabel" runat="server" Text='<%# Eval("Km") %>' />
                </td>
                <td>
                    <asp:Label ID="column2Label" runat="server" Text='<%# Eval("column2") %>' />
                </td>
                <td>
                    <asp:Label ID="column3Label" runat="server" Text='<%# Eval("column3") %>' />
                </td>
                <td>
                    <asp:Label ID="StatoLabel" runat="server" Text='<%# Eval("Stato") %>' />
                </td>
            </tr>
        </SelectedItemTemplate>
    </asp:ListView>
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:baseConnectionString %>"
        SelectCommand="SELECT [ID], [Marca], [Modello], [Tipo], [Possesso], [Colore], [Carburante], [Cili],
				 [Km], [Stato], [nPosti], [nPorte] , [Prezzo] FROM [vAnnVendita]"></asp:SqlDataSource>
</asp:Content>
